package acm.pta3;

import java.util.Scanner;

public class T7 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        for (int i = 0; i < N; i++) {
            int H = scanner.nextInt();
            int W = scanner.nextInt();
            double standardWeight = (H - 100) * 0.9 * 2;
            if (Math.abs(W - standardWeight) < standardWeight * 0.1) {
                System.out.println("You are wan mei!");
            } else if (W > standardWeight) {
                System.out.println("You are tai pang le!");
            } else {
                System.out.println("You are tai shou le!");
            }
        }
    }
}
